pico-8 cartridge // http://www.pico-8.com
version 42
__lua__
-- i18ndemo
-- by hp7hao

-- load lib
#include ../../../libs/pico8/i18n.lua

-- load translations
#include ./i18ndemo.texts.zhcn.lua
#include ./i18ndemo.texts.enus.lua

-- set default lang
i18n.setlang("zhcn")

-- predefine text keys
-- __text("t0")

function _draw()
	cls(1)
	_p("t0",1,1,7,0)
end

function _update()
	if btn(4) then
		i18n.setlang("enus")
	elseif btn(5) then
		i18n.setlang("zhcn")
	end
end

__label__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000003333333333333333333333333333333333333333333333333333333333333333333333333333333333333333300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000003333333333333333333333333333333333333333333333333333333333333333330000000000000300000000000
00000000003000000000000000003000000003000000000000000000000000000000000000000000000000000000000000000030000000000000300000000000
00000000003000000000000000003000000003000000000000000000000000000000000000000000000000000000000000000030000000000000300000000000
00000000003000000000000000003000000003000000000000000000000000000000000000000000000000000000000000000030000000000000300000000000
00000000003000000000000000003000000003000000000000000000000000000000000000000000000000000000000000000030000000000000300000000000
00000000003000000000000000003000000003000000000000000000000000000000000000000000000000000000000000000030000000000000300000000000
00000000003000000000000000003000000003000003333333333333333333333333333333333333333333333333333000000030000000000000300000000000
00000000003000000000000000003000000003000003000000000000000000000000000000000000000000000000003000000030000000000000300000000000
00000000003000000000000000003000000003000003000000000000000000000000000000000000000000000000003000000030000000000000300000000000
00000000003000000000000000003000000003000003000000000000000000000000000000000000000000000000003000000030000000000000300000000000
00000000003000000000000000003000000003000003003333333333333333333333333333333333333333333300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003000000000000000000000000000000000000000000300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003000000000000000000000000000000000000000000300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003333333333333333333333333333333333333300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000083000008003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000753000005703000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000753055005703000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
000000000030000000000000007531cc105703000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000766555566703000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000866628155182666800003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000055589855898555b00888888003000000000000000000000000000000000000300300003000000030000000000000300000000000
000000000030000000000000000181551810030bbb9aa99803000000000000000000000000000000000000300300003000000030000000000000300000000000
000000000030000000000000000030000000030089bbb98888880000000000000000000000000000000000300300003000000030000000000000300000000000
000000000030000000000000000030000000030008888bbbaa998000000000000000000000000000000000300300003000000030000000000000300000000000
000000000030000000000000000030000000030000030899bbb98a80000000000000000000000000000000300300003000000030000000000000300000000000
000000000030000000000000000030000000030000030088888bbba8a80000000000000000000000000000300300003000000030000000000000300000000000
000000000030000000000000000030000000030000030030030089bbb98000000000000000000000000000300300003000000030000000000000300000000000
000000000030000000000000000030000000030000030030030008a8abb000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003000000000000000000000000000000000000300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003003333333333333333333333333333333333333300300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003000000000000000000000000000000000000000000300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003000000000000000000000000000000000000000000300003000000030000000000000300000000000
00000000003000000000000000003000000003000003003333333333333333333333333333333333333333333300003000000030000000000000300000000000
00000000003000000000000000003000000003000003000000000000000000000000000000000000000000000000003000000030000000000000300000000000
00000000003000000000000000003000000003000003000000000000000000000000000000000000000000000000003000000030000000000000300000000000
00000000003000000000000000003000000003000003000000000000000000000000000000000000000000000000003000000030000000000000300000000000
00000000003000000000000000003000000003000003000000000000000000000000000000000000000000000000003000000030000000000000300000000000
00000000003000000000000000003000000003000003333333333333333333333333333333333333333333333333333000000030000000000000300000000000
00000000003000000000000000003000000003000000000000000000000000000000000000000000000000000000000000000030000000000000300000000000
00000000003000000000000000003000000003000000000000000000000000000000000000000000000000000000000000000030000000000000300000000000
00000000003000000000000000003000000003000000000000000000000000000000000000000000000000000000000000000030000000000000300000000000
00000000003000000000000000003000000003000000000000000000000000000000000000000000000000000000000000000030000000000000300000000000
00000000003000000000000000003000000003000000000000000000000000000000000000000000000000000000000000000030000000000000300000000000
00000000003000000000000000003000000003000000000000000000000000000000000000000000000000000000000000000030000000000000300000000000
00000000003000000000000000003000000003333333333333333333333333333333333333333333333333333333333333333330000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000
00000000003000000000000000003333333333333333333333333333333333333333333333333333333333333333333333333333333333333333300000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

